package com.xh.web.controller;

import java.util.List;


import com.xh.web.domain.DImport;
import com.xh.web.service.IDImportService;
import com.xh.web.util.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 导入记录Controller
 *
 * @author fulan
 * @date 2020-09-14
 */
@RestController
@RequestMapping("/db/import")
public class DImportController extends BaseController
{
    @Autowired
    private IDImportService dImportService;

    /**
     * 查询导入记录列表
     */
    @GetMapping("/list")
    public TableDataInfo list(DImport dImport)
    {
        startPage();
        List<DImport> list = dImportService.selectDImportList("admin");
        return getDataTable(list);
    }

}
